package com.market.manager;

import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.market.domain.Product;
import com.market.domain.ProductTheme;
import com.market.domain.Weekly;

public interface ProductThemeManager extends GenericManager<ProductTheme, Long> {
	/**
	 * load all products are associated with this product theme
	 * @param user
	 * @return
	 */
	@Transactional(propagation = Propagation.REQUIRED, readOnly=true)
	public List<Product> fetchProducts(ProductTheme productTheme);
	
	
	/**
	 * load all product themes  are active
	 * @param 
	 * @return
	 */
	@Transactional(propagation = Propagation.REQUIRED, readOnly=true)
	public List<ProductTheme> fetchActiveProductThemes();
}
